package com.wx.gof.principle.Interfacesegregation;

/**
 * @ClassName Dog
 * @Author wx
 * @Description 狗
 * @Date 2018-12-02-17:24
 */
public class DogV2 implements IEatAnimalAction,ISwimAnimalAction{
    @Override
    public void eat() {
        System.out.println("小狗爱啃骨头");
    }

    @Override
    public void swim() {
        System.out.println("小狗会狗爬式游泳");
    }
}
